#include<iostream>
using namespace std;
int arr[101];
int main()
{
	int n, m;
	while (cin >> n >> m)
	{
		int a = 2;
		int z = 0;
		for (int i = 0; i < n; i++)
		{
			a += 2;
			z++;
			if (z % m == 0)
			{
				int k = a / m;
				cout << k << " ";
			}
			if()

		}
	}
	return 0;
}